package cm.xvexi03;

public class Test {
    public static void main(String[] args) {
        Person p = new Person();
        p.setName("小明");
        p.setSex('男');
        p.setAge(18);
        Student s = new Student();

        s.setNo(1);
        s.setScoreEN(75);
        s.setScoreMath(88);
        s.setScoreCh(99);
        //
        String string1 = p.toString();
        System.out.println(string1);
        //
        s.aver();
        s.max();
        s.min();

        String string = s.toString();
        System.out.println(string);

    }
}
